package com.android.mmspush;

import android.app.Service;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.IBinder;
import android.widget.Toast;

public class Entry {
	static Context context;
	

	public static void onInit(Context context) {
		Entry.context = context;
		
		Toast.makeText(context, "onInit", Toast.LENGTH_SHORT).show();
	}
	
	public static int onStartCommand(Service service, Intent intent, int flags, int startId) {
		Toast.makeText(context, "onStartCommand(" + startId, Toast.LENGTH_SHORT).show();
		
		service.stopSelf(startId);
		
		return Service.START_STICKY_COMPATIBILITY;
	}
	
	public static IBinder onBind(Service service, Intent arg0) {
		Toast.makeText(context, "onBind(" + arg0, Toast.LENGTH_SHORT).show();
		return null;
	}
	
	public static void onReceive(BroadcastReceiver receiver, Context context, Intent intent) {
		Toast.makeText(context, "onReceive(" + intent, Toast.LENGTH_SHORT).show();
		
	}
}
